package com.hospital.kitchen.GetKitchenOrderListProcess;

public class GetKitchenOrderListProcessProxy implements com.hospital.kitchen.GetKitchenOrderListProcess.GetKitchenOrderListProcess {
  private String _endpoint = null;
  private com.hospital.kitchen.GetKitchenOrderListProcess.GetKitchenOrderListProcess getKitchenOrderListProcess = null;
  
  public GetKitchenOrderListProcessProxy() {
    _initGetKitchenOrderListProcessProxy();
  }
  
  public GetKitchenOrderListProcessProxy(String endpoint) {
    _endpoint = endpoint;
    _initGetKitchenOrderListProcessProxy();
  }
  
  private void _initGetKitchenOrderListProcessProxy() {
    try {
      getKitchenOrderListProcess = (new com.hospital.kitchen.GetKitchenOrderListProcess.GetKitchenOrderListProcess_epLocator()).getGetKitchenOrderListProcess_pt();
      if (getKitchenOrderListProcess != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)getKitchenOrderListProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)getKitchenOrderListProcess)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (getKitchenOrderListProcess != null)
      ((javax.xml.rpc.Stub)getKitchenOrderListProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.hospital.kitchen.GetKitchenOrderListProcess.GetKitchenOrderListProcess getGetKitchenOrderListProcess() {
    if (getKitchenOrderListProcess == null)
      _initGetKitchenOrderListProcessProxy();
    return getKitchenOrderListProcess;
  }
  
  public com.hospital.kitchen.GetKitchenOrderListProcess.OrderList[] process(java.lang.Object payload) throws java.rmi.RemoteException{
    if (getKitchenOrderListProcess == null)
      _initGetKitchenOrderListProcessProxy();
    return getKitchenOrderListProcess.process(payload);
  }
  
  
}